//Class representing the normal checker piece

//Import needed ArrayList items
import java.util.ArrayList;

//Inherits Moveable class which inherits Piece class
class Checker extends Moveable{
public Checker(String owner, String xCoord, String yCoord, String zCoord, int dir)
{
	//Call parent constructor
	super(owner, xCoord, yCoord, zCoord);

	//Create the location objects that reflect relative move positions when added to current position
	Location move1 = new Location(1*dir,1*dir,0); // Multiplying the x and y by the direction as checker can move up OR down the board
	Location move2 = new Location(-1*dir,1*dir,0);

	//Moves that change board
	Location move3 = new Location(0,0,1);
	Location move4 = new Location(0,0,-1);

	//Create Location ArrayList to hold the relative move positions
	ArrayList<Location> movePossibilities = new ArrayList<Location>();
	movePossibilities.add(move1);  //Add the relative move positions to the ArrayList
	movePossibilities.add(move2);
	movePossibilities.add(move3);
	movePossibilities.add(move4);
	movePositions = movePossibilities;  //Set the instance variable of Moveable class to the ArrayList we created

	isVisible = true; //Checkers are visible on the board, so set to true
	warp = true;  //Checkers can warp, set to true
	direction = dir; //Save the direction of the pieces for later purposes.  May not be needed as we modified the move possibilities already, not sure
	jumpable = true;
	passable = false;
	explodeOnEnemyContact = false;
	destroyEnemyOnContact = false;
	canWarpAndMove = false;
	safeOnContact = false;
	moveRange = 1;
	jumpRange=1;
}

}